﻿
using UnityEditor;
namespace Nirvana
{
    /// <summary>
    /// 在Perference菜单面板上添加新的菜单命令
    /// </summary>
    public static class NirvanaPreferencesEditor
    {
#if UNITY_2019_1_OR_NEWER
        [SettingsProvider]
        private static SettingsProvider Init()
        {
            return new SettingsProvider("Preferences/Nirvana Tools", SettingsScope.User)
            {
                label = "Nirvana Tools",
                guiHandler = (s) => {
                    LuaCheckTool.ShowGUI();


                }
            };
        }
#else
        [PreferenceItem("Nirvana Tools")]
        private static void Init()
        {
            LuaCheckTool.ShowGUI();
        }
#endif



    }
}

